import request from '@/utils/request'

// 查询省级ip明细列表
export function listTotalip(query) {
  return request({
    url: '/ipmanagement/totalip/list',
    method: 'get',
    params: query
  })
}

// 查询省级ip明细详细
export function getTotalip(id) {
  return request({
    url: '/ipmanagement/totalip/' + id,
    method: 'get'
  })
}

// 新增省级ip明细
export function addTotalip(data) {
  return request({
    url: '/ipmanagement/totalip',
    method: 'post',
    data: data
  })
}

// 修改省级ip明细
export function updateTotalip(data) {
  return request({
    url: '/ipmanagement/totalip',
    method: 'put',
    data: data
  })
}

// 删除省级ip明细
export function delTotalip(id) {
  return request({
    url: '/ipmanagement/totalip/' + id,
    method: 'delete'
  })
}
